#include <iostream>
#include <stdio.h>
#include <unistd.h>
using namespace std;

int getBeiShu(int i) 
{
    int yz = 1;
    while ((i = i/10))
        yz++;
    return yz;
}

int main(int argc, const char *argv[])
{
    int n;
    int yz;
    int i = 0;
    while (1) {
        sleep(1);//cin >> n;
        //yz = n%10;
        //if (yz)
        i++;
        yz = getBeiShu(i);
        n = i*(yz+1)/(yz);
        cout << "i:" << i << " " << "yz:" << yz << " " << "n:" << n << endl;
    }

    return 0;
}
